<?php

namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable
{
    use Notifiable;

    public $table = 'user';
    public $primaryKey = 'id';

    // 允许批量赋值的字段 
    protected $fillable = [
        'username',
        'password',
    ];

    // 隐藏时间戳字段
    public $timestamps = false;
}
